import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const Recommend = (resolve) => {
  import('../views/recommend').then((module) => {
    resolve(module)
  })
}

const GameList = (resolve) => {
  import('../views/gameList').then((module) => {
    resolve(module)
  })
}

const GameHtml = (resolve) => {
  import('../views/gameHtml').then((module) => {
    resolve(module)
  })
}

const LotteryRecord = (resolve) => {
  import('../views/lotteryRecord').then((module) => {
    resolve(module)
  })
} 

const Money = (resolve) => {
  import('../views/money').then((module) => {
    resolve(module)
  })
}

const Recharge = (resolve) => {
  import('../views/moneyDetails/recharge').then((module) => {
    resolve(module)
  })
}
const RechargeOrder = (resolve) => {
  import('../views/moneyDetails/rechargeOrder').then((module) => {
    resolve(module)
  })
}
const RechargeHtml = (resolve) => {
  import('../views/moneyDetails/rechargeHtml').then((module) => {
    resolve(module)
  })
}
const RechargeResult = (resolve) => {
  import('../views/moneyDetails/rechargeResult').then((module) => {
    resolve(module)
  })
}

const Withdrawal = (resolve) => {
  import('../views/moneyDetails/withdrawal').then((module) => {
    resolve(module)
  })
}
const WithdrawalResult = (resolve) => {
  import('../views/moneyDetails/withdrawalResult').then((module) => {
    resolve(module)
  })
}

const TradingRecords = (resolve) => {
  import('../views/moneyDetails/tradingRecords').then((module) => {
    resolve(module)
  })
}

const User = (resolve) => {
  import('../views/user').then((module) => {
    resolve(module)
  })
}
const MyRecord = (resolve) => {
  import('../views/userCenter/myRecord').then((module) => {
    resolve(module)
  })
}
const AccountDetails = (resolve) => {
  import('../views/userCenter/accountDetails').then((module) => {
    resolve(module)
  })
}
const PersonalMsg = (resolve) => {
  import('../views/userCenter/personalMsg').then((module) => {
    resolve(module)
  })
}
const PersonalLoginPsw = (resolve) => {
  import('../views/userCenter/personalLoginPsw').then((module) => {
    resolve(module)
  })
}
const PersonalDrawalPsw = (resolve) => {
  import('../views/userCenter/personalDrawalPsw').then((module) => {
    resolve(module)
  })
}
const BindingName = (resolve) => {
  import('../views/userCenter/bindingName').then((module) => {
    resolve(module)
  })
}
const BindingCard = (resolve) => {
  import('../views/userCenter/bindingCard').then((module) => {
    resolve(module)
  })
}
const BindingCardResult = (resolve) => {
  import('../views/userCenter/bindingCardResult').then((module) => {
    resolve(module)
  })
}
const PersonalCard = (resolve) => {
  import('../views/userCenter/personalCard').then((module) => {
    resolve(module)
  })
}
const ServiceHtml = (resolve) => {
  import('../views/userCenter/serviceHtml').then((module) => {
    resolve(module)
  })
}
const MessageCenter = (resolve) => {
  import('../views/userCenter/messageCenter').then((module) => {
    resolve(module)
  })
}
const MessageDetails = (resolve) => {
  import('../views/userCenter/messageDetails').then((module) => {
    resolve(module)
  })
}
const Setting = (resolve) => {
  import('../views/userCenter/setting').then((module) => {
    resolve(module)
  })
}

const VipCenter = (resolve) => {
  import('../views/vipCenter/vipCenter').then((module) => {
    resolve(module)
  })
}

const VipManage = (resolve) => {
  import('../views/vipCenter/vipManage').then((module) => {
    resolve(module)
  })
}
const VipAgentList = (resolve) => {
  import('../views/vipCenter/vipAgentList').then((module) => {
    resolve(module)
  })
}
const VipSearch = (resolve) => {
  import('../views/vipCenter/vipSearch').then((module) => {
    resolve(module)
  })
}
const VipMemInfo = (resolve) => {
  import('../views/vipCenter/vipMemInfo').then((module) => {
    resolve(module)
  })
}
const VipModify = (resolve) => {
  import('../views/vipCenter/vipModify').then((module) => {
    resolve(module)
  })
}
const VipRecord = (resolve) => {
  import('../views/vipCenter/vipRecord').then((module) => {
    resolve(module)
  })
}
const VipInvite = (resolve) => {
  import('../views/vipCenter/vipInvite').then((module) => {
    resolve(module)
  })
}

const Login = (resolve) => {
  import('../views/userCenter/login').then((module) => {
    resolve(module)
  })
}
const Register = (resolve) => {
  import('../views/userCenter/register').then((module) => {
    resolve(module)
  })
} 

const LotteryOrder = (resolve) => {
  import('../views/lottery/lotteryOrder').then((module) => {
    resolve(module)
  })
}
const LotteryOrderResult = (resolve) => {
  import('../views/lottery/lotteryOrderResult').then((module) => {
    resolve(module)
  })
}
const LotteryHistory = (resolve) => {
  import('../views/lottery/lotteryHistory').then((module) => {
    resolve(module)
  })
} 

const TheMyRecord = (resolve) => {
  import('../views/lottery/theMyRecord').then((module) => {
    resolve(module)
  })
}
const MyRecordDtails = (resolve) => {
  import('../views//lottery/myRecordDtails').then((module) => {
    resolve(module)
  })
}

const Bjpk10 = (resolve) => {
  import('../views/lottery/bjpk10/bjpk10').then((module) => {
    resolve(module)
  })
} 
const Bjpk10Trend = (resolve) => {
    import('../views/lottery/bjpk10/bjpk10Trend').then((module) => {
        resolve(module)
    })
}
const Bjpk10Rule = (resolve) => {
  import('../views/lottery/bjpk10/bjpk10Rule').then((module) => {
    resolve(module)
  })
}

const Cqssc = (resolve) => {
  import('../views/lottery/cqssc/cqssc').then((module) => {
    resolve(module)
  })
}
const CqsscTrend = (resolve) => {
    import('../views/lottery/cqssc/cqsscTrend').then((module) => {
        resolve(module)
    })
}
const CqsscRule = (resolve) => {
  import('../views/lottery/cqssc/cqsscRule').then((module) => {
    resolve(module)
  })
}

const Xglhc = (resolve) => {
  import('../views/lottery/xglhc/xglhc').then((module) => {
    resolve(module)
  })
}
const XglhcTrend = (resolve) => {
    import('../views/lottery/xglhc/xglhcTrend').then((module) => {
        resolve(module)
    })
}
const XglhcRule = (resolve) => {
  import('../views/lottery/xglhc/xglhcRule').then((module) => {
    resolve(module)
  })
}

const Gdsyxw = (resolve) => {
  import('../views/lottery/gdsyxw/gdsyxw').then((module) => {
    resolve(module)
  })
}
const GdsyxwTrend = (resolve) => {
    import('../views/lottery/gdsyxw/gdsyxwTrend').then((module) => {
        resolve(module)
    })
}
const GdsyxwRule = (resolve) => {
  import('../views/lottery/gdsyxw/gdsyxwRule').then((module) => {
    resolve(module)
  })
}

const Gdklsf = (resolve) => {
  import('../views/lottery/gdklsf/gdklsf').then((module) => {
    resolve(module)
  })
}
const GdklsfTrend = (resolve) => {
    import('../views/lottery/gdklsf/gdklsfTrend').then((module) => {
        resolve(module)
    })
}
const GdklsfRule = (resolve) => {
  import('../views/lottery/gdklsf/gdklsfRule').then((module) => {
    resolve(module)
  })
}

const Bjkb = (resolve) => {
  import('../views/lottery/bjkb/bjkb').then((module) => {
    resolve(module)
  })
}
const BjkbTrend = (resolve) => {
    import('../views/lottery/bjkb/bjkbTrend').then((module) => {
        resolve(module)
    })
}
const BjkbRule = (resolve) => {
  import('../views/lottery/bjkb/bjkbRule').then((module) => {
    resolve(module)
  })
}

const Jstb = (resolve) => {
  import('../views/lottery/jstb/jstb').then((module) => {
    resolve(module)
  })
}
const JstbTrend = (resolve) => {
    import('../views/lottery/jstb/jstbTrend').then((module) => {
        resolve(module)
    })
}
const JstbRule = (resolve) => {
  import('../views/lottery/jstb/jstbRule').then((module) => {
    resolve(module)
  })
}

const Pcdd = (resolve) => {
  import('../views/lottery/pcdd/pcdd').then((module) => {
    resolve(module)
  })
}
const PcddTrend = (resolve) => {
    import('../views/lottery/pcdd/pcddTrend').then((module) => {
        resolve(module)
    })
}
const PcddRule = (resolve) => {
  import('../views/lottery/pcdd/pcddRule').then((module) => {
    resolve(module)
  })
}


export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/recommend'
    },
    {
      path: '/recommend',
      name:'recommend',
      component: Recommend,
      meta: {
        keepAlive: true // 需要被缓存
      } 
    },
    {
      path: '/gameList',
      name:'gameList',
      component: GameList
    },
    {
      path: '/gameHtml',
      name:'gameHtml',
      component: GameHtml
    },
    {
      path: '/lotteryRecord',
      name:'lotteryRecord',
      component: LotteryRecord,
      meta: {
        keepAlive: true // 需要被缓存
      }
    }, 
    {
      path: '/money',
      name:'money',
      component: Money,
    },
    {
      path: '/recharge',
      name:'recharge',
      component: Recharge
    },
    {
      path: '/rechargeHtml',
      name:'rechargeHtml',
      component: RechargeHtml,
    },
    {
      path: '/rechargeOrder',
      name:'rechargeOrder',
      component: RechargeOrder 
    },
    {
      path: '/rechargeResult',
      name:'rechargeResult',
      component: RechargeResult
    },
    {
      path: '/withdrawal',
      name:'withdrawal',
      component: Withdrawal 
    },
    {
      path: '/withdrawalResult',
      name:'withdrawalResult',
      component: WithdrawalResult
    },
    {
      path: '/tradingRecords',
      name:'tradingRecords',
      component: TradingRecords
    },
    {
      path: '/user',
      name:'user',
      component: User 
    },
    {
      path: '/myRecord',
      name:'myRecord',
      component: MyRecord 
    },
    {
      path: '/accountDetails',
      name:'accountDetails',
      component: AccountDetails 
    },
    {
      path: '/personalMsg',
      name:'personalMsg',
      component: PersonalMsg
    },
    {
      path: '/personalLoginPsw',
      name:'personalLoginPsw',
      component: PersonalLoginPsw
    },
    {
      path: '/personalDrawalPsw',
      name:'personalDrawalPsw',
      component: PersonalDrawalPsw
    },
    {
      path: '/bindingName',
      name:'bindingName',
      component: BindingName
    },
    {
      path: '/bindingCard',
      name:'bindingCard',
      component: BindingCard
    },
    {
      path: '/bindingCardResult',
      name:'bindingCardResult',
      component: BindingCardResult
    },
    {
      path: '/personalCard',
      name:'personalCard',
      component: PersonalCard
    },
    {
      path: '/serviceHtml',
      name:'serviceHtml',
      component: ServiceHtml
    },
    {
      path: '/messageCenter',
      name:'messageCenter',
      component: MessageCenter 
    },
    {
      path: '/messageDetails',
      name:'messageDetails',
      component: MessageDetails
    },
    {
      path: '/setting',
      name:'setting',
      component: Setting
    },
    {
      path: '/vipCenter',
      name:'vipCenter',
      component: VipCenter
    },
    {
      path: '/vipManage',
      name:'vipManage',
      component: VipManage
    },
    {
      path: '/vipAgentList',
      name:'vipAgentList',
      component: VipAgentList
    },
    {
      path: '/vipSearch',
      name:'vipSearch',
      component: VipSearch
    },
    {
      path: '/vipMemInfo',
      name:'vipMemInfo',
      component: VipMemInfo
    },
    {
      path: '/vipModify',
      name:'vipModify',
      component: VipModify
    },
    {
      path: '/vipRecord',
      name:'vipRecord',
      component: VipRecord
    },
    {
      path: '/vipInvite',
      name:'vipInvite',
      component: VipInvite
    },
    {
      path: '/login',
      name:'login',
      component: Login
    },
    {
      path: '/register',
      name:'register',
      component: Register
    },
    {
      path: '/lotteryOrder',
      name:'lotteryOrder',
      component: LotteryOrder
    },
    {
      path: '/lotteryOrderResult',
      name:'lotteryOrderResult',
      component: LotteryOrderResult
    },
    {
      path: '/lotteryHistory',
      name:'lotteryHistory',
      component: LotteryHistory
    },
    {
      path: '/theMyRecord',
      name:'theMyRecord',
      component: TheMyRecord
    },
    {
      path: '/myRecordDtails',
      name:'myRecordDtails',
      component: MyRecordDtails
    },
    {
      path: '/bjpk10',
      name:'bjpk10',
      component: Bjpk10
    },
    {
      path: '/bjpk10Trend',
      name:'bjpk10Trend',
      component: Bjpk10Trend
    },
    {
      path: '/bjpk10Rule',
      name:'bjpk10Rule',
      component: Bjpk10Rule
    },
    {
      path: '/cqssc',
      name:'cqssc',
      component: Cqssc
    },
    {
      path: '/cqsscTrend',
      name:'cqsscTrend',
      component: CqsscTrend
    },
    {
      path: '/cqsscRule',
      name:'cqsscRule',
      component: CqsscRule
    },
    {
      path: '/xglhc',
      name:'xglhc',
      component: Xglhc
    },
    {
      path: '/xglhcTrend',
      name:'xglhcTrend',
      component: XglhcTrend
    },
    {
      path: '/xglhcRule',
      name:'xglhcRule',
      component: XglhcRule
    },
    {
      path: '/gdsyxw',
      name:'gdsyxw',
      component: Gdsyxw
    },
    {
      path: '/gdsyxwTrend',
      name:'gdsyxwTrend',
      component: GdsyxwTrend
    },
    {
      path: '/gdsyxwRule',
      name:'gdsyxwRule',
      component: GdsyxwRule
    },
    {
      path: '/gdklsf',
      name:'gdklsf',
      component: Gdklsf
    },
    {
      path: '/gdklsfTrend',
      name:'gdklsfTrend',
      component: GdklsfTrend
    },
    {
      path: '/gdklsfRule',
      name:'gdklsfRule',
      component: GdklsfRule
    },
    {
      path: '/bjkb',
      name:'bjkb',
      component: Bjkb
    },
    {
      path: '/bjkbTrend',
      name:'bjkbTrend',
      component: BjkbTrend
    },
    {
      path: '/bjkbRule',
      name:'bjkbRule',
      component: BjkbRule
    },
    {
      path: '/jstb',
      name:'jstb',
      component: Jstb
    },
    {
      path: '/jstbTrend',
      name:'jstbTrend',
      component: JstbTrend
    },
    {
      path: '/jstbRule',
      name:'jstbRule',
      component: JstbRule
    },
    {
      path: '/pcdd',
      name:'pcdd',
      component: Pcdd
    },
    {
      path: '/pcddTrend',
      name:'pcddTrend',
      component: PcddTrend
    },
    {
      path: '/pcddRule',
      name:'pcddRule',
      component: PcddRule
    }
  ]
})
